<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/3
 * Time: 11:01
 */
namespace app\index\controller;

use think\Db;
use think\View;
use think\Controller;

class Understandus  extends Controller
{


    //关于我们
    public function aboutUs()
    {
        $id=getProviderId();
        $article=Db::name('article')->where('providerId',$id)->where('templateCode',1)->where('passId',1)->find();
        if(empty($article)){
            $article=Db::name('article')->where('providerId',0)->where('templateCode',1)->where('passId',1)->find();
        }
        $this->view->assign('article',$article);
        return view('aboutus');
    }

}